Optimal. Leaf size=94 \[ e^{-a} a^3 (-b) \text{Ei}(-b x)+3 e^{-a} a^2 b \text{Ei}(-b x)-\frac{a^3 e^{-a-b x}}{x}-b^2 x e^{-a-b x}-3 a b e^{-a-b x}-b e^{-a-b x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.160883, antiderivative size = 94, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {2199, 2194, 2177, 2178, 2176} \[ e^{-a} a^3 (-b) \text{Ei}(-b x)+3 e^{-a} a^2 b \text{Ei}(-b x)-\frac{a^3 e^{-a-b x}}{x}-b^2 x e^{-a-b x}-3 a b e^{-a-b x}-b e^{-a-b x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2199
Rule 2194
Rule 2177
Rule 2178
Rule 2176
Rubi steps
\begin{align*} \int \frac{e^{-a-b x} (a+b x)^3}{x^2} \, dx &=\int \left (3 a b^2 e^{-a-b x}+\frac{a^3 e^{-a-b x}}{x^2}+\frac{3 a^2 b e^{-a-b x}}{x}+b^3 e^{-a-b x} x\right ) \, dx\\ &=a^3 \int \frac{e^{-a-b x}}{x^2} \, dx+\left (3 a^2 b\right ) \int \frac{e^{-a-b x}}{x} \, dx+\left (3 a b^2\right ) \int e^{-a-b x} \, dx+b^3 \int e^{-a-b x} x \, dx\\ &=-3 a b e^{-a-b x}-\frac{a^3 e^{-a-b x}}{x}-b^2 e^{-a-b x} x+3 a^2 b e^{-a} \text{Ei}(-b x)-\left (a^3 b\right ) \int \frac{e^{-a-b x}}{x} \, dx+b^2 \int e^{-a-b x} \, dx\\ &=-b e^{-a-b x}-3 a b e^{-a-b x}-\frac{a^3 e^{-a-b x}}{x}-b^2 e^{-a-b x} x+3 a^2 b e^{-a} \text{Ei}(-b x)-a^3 b e^{-a} \text{Ei}(-b x)\\ \end{align*}
Mathematica [A] time = 0.0650001, size = 54, normalized size = 0.57 \[ \frac{e^{-a-b x} \left (-(a-3) a^2 b x e^{b x} \text{Ei}(-b x)-a^3-3 a b x-b x (b x+1)\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 92, normalized size = 1. \begin{align*} b \left ( \left ( -bx-a \right ){{\rm e}^{-bx-a}}-{{\rm e}^{-bx-a}}-2\,a{{\rm e}^{-bx-a}}-3\,{a}^{2}{{\rm e}^{-a}}{\it Ei} \left ( 1,bx \right ) -{a}^{3} \left ({\frac{{{\rm e}^{-bx-a}}}{bx}}-{{\rm e}^{-a}}{\it Ei} \left ( 1,bx \right ) \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1616, size = 82, normalized size = 0.87 \begin{align*} -a^{3} b e^{\left (-a\right )} \Gamma \left (-1, b x\right ) + 3 \, a^{2} b{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} -{\left (b x + 1\right )} b e^{\left (-b x - a\right )} - 3 \, a b e^{\left (-b x - a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.4683, size = 117, normalized size = 1.24 \begin{align*} -\frac{{\left (a^{3} - 3 \, a^{2}\right )} b x{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} +{\left (b^{2} x^{2} + a^{3} +{\left (3 \, a + 1\right )} b x\right )} e^{\left (-b x - a\right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.47635, size = 99, normalized size = 1.05 \begin{align*} - \frac{a^{3} e^{- a} \operatorname{E}_{2}\left (b x\right )}{x} + 3 a^{2} b e^{- a} \operatorname{Ei}{\left (- b x \right )} + 3 a b^{2} \left (\begin{cases} x & \text{for}\: b = 0 \\- \frac{e^{- b x}}{b} & \text{otherwise} \end{cases}\right ) e^{- a} + b^{3} x \left (\begin{cases} x & \text{for}\: b = 0 \\- \frac{e^{- b x}}{b} & \text{otherwise} \end{cases}\right ) e^{- a} - b^{3} \left (\begin{cases} \frac{x^{2}}{2} & \text{for}\: b = 0 \\- \frac{\begin{cases} - \frac{e^{- b x}}{b} & \text{for}\: b \neq 0 \\x & \text{otherwise} \end{cases}}{b} & \text{otherwise} \end{cases}\right ) e^{- a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.383, size = 124, normalized size = 1.32 \begin{align*} -\frac{a^{3} b x{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 3 \, a^{2} b x{\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + b^{2} x^{2} e^{\left (-b x - a\right )} + a^{3} e^{\left (-b x - a\right )} + 3 \, a b x e^{\left (-b x - a\right )} + b x e^{\left (-b x - a\right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]